<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>侧边栏-SCM</title>
</head>
<body>

<th:block th:fragment="sidebar" th:with="scmURL = ${session.SCM.value}">
    <!-- 仓储采购SCM -->
    <li data-name="mms-menu" class="layui-nav-item">
        <div class="system">仓储采购SCM</div>
        <!-- 采购管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="art"
                th:if="${#authPermit.checkMenuPermits(false,'/purchase/unified/*.action','/purchase/branch/self/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>采购管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/purchase/unified/*.action')}">
                        <a href="javascript:;">统采管理</a>
                        <dl class="layui-nav-child">
                            <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/purchase/apply/list.action')}">
                                <a th:lay-href="|${scmURL}/purchase/apply/list.action|">统采申请</a>
                            </dd>
                            <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/purchase/summary/applypasslist.action')}">
                                <a th:lay-href="|${scmURL}/purchase/summary/applypasslist.action|">统采申请通过</a>
                            </dd>
                            <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/purchase/summary/list.action')}">
                                <a th:lay-href="|${scmURL}/purchase/summary/list.action|">统采申请汇总</a>
                            </dd>
                            <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/purchase/branch/unified/list.action')}">
                                <a th:lay-href="|${scmURL}/purchase/branch/unified/list.action|">统采总采购单</a>
                            </dd>
                            <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/purchase/branch/unified/son/list.action')}">
                                <a th:lay-href="|${scmURL}/purchase/branch/unified/son/list.action|">统采子采购单</a>
                            </dd>

                        </dl>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/purchase/branch/self/*.action')}">
                        <a href="javascript:;">自采管理</a>
                        <dl class="layui-nav-child">
                            <dd data-name="list"
                                th:if="${#authPermit.checkMenuPermit('/purchase/branch/self/list.action')}">
                                <a th:lay-href="|${scmURL}/purchase/branch/self/list.action|">自采采购</a>
                            </dd>
                        </dl>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 库房仓储 -->
        <dl class="layui-nav-child show">
            <dd data-name="art" th:if="${#authPermit.checkMenuPermit('/wms/warehouse/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>库房仓储</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="grid" th:if="${#authPermit.checkMenuPermit('/wms/warehouse/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/warehouse/list.action|">库房管理</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/skustock/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/skustock/list.action|">库存管理</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/instore/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/instore/list.action|">库房入库</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/outstore/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/outstore/list.action|">库房出库</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/check/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/check/list.action|">库房盘点</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 工程师库存 -->
        <dl class="layui-nav-child show">
            <dd data-name="art" th:if="${#authPermit.checkMenuPermit('/wms/master/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-username"></i>
                    <cite>工程师库存</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/stock/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/stock/list.action|">工程师库存</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/instore/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/instore/list.action|">工程师入库单</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/outstore/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/outstore/list.action|">工程师出库单</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/draw/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/draw/list.action|">工程师领用单</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/revert/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/revert/list.action|">工程师归还单</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/master/check/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/master/check/list.action|">工程师配件盘点</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 外报运杂 -->
        <dl class="layui-nav-child show">
            <dd data-name="art"
                th:if="${#authPermit.checkMenuPermits(false,'/wms/outsourcing/*.action','/wms/freight/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>外报运杂</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/outsourcing/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/outsourcing/list.action|">外报单</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/freight/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/freight/list.action|">采购运杂</a>
                    </dd>
                    <dd data-name="list" th:if="${#authPermit.checkMenuPermit('/wms/orderFreight/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/orderFreight/list.action|">订单运杂</a>
                    </dd>
                </dl>
            </dd>
        </dl>
    </li>
</th:block>

</body>
</html>
